package com.wu.ssm.study.cglib;

/**
 * Created by wzf on 2018/11/18/018.
 */
public class Main {


    public static void main(String[] args) {
        BookFacadeImpl bookFacade = new BookFacadeImpl();
        CGLibProxy cgLibProxy = new CGLibProxy();
        bookFacade = (BookFacadeImpl) cgLibProxy.getInstance(bookFacade);
        bookFacade.addBook();

        BookFacadeImpl bookFacade1 = cgLibProxy.getProxy(BookFacadeImpl.class);
        bookFacade1.addBook();
    }
}
